package com.eascs.banknet.common.config;
/*package com.eascs.banknet.common.config;

import javax.inject.Inject;

import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.interceptor.CacheErrorHandler;
import org.springframework.cache.interceptor.CacheResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.core.env.Environment;

import com.eascs.app.cache.CacheRegistry;
import com.eascs.app.cache.CacheSettings;
import com.eascs.app.cache.DefaultCacheConfig;
import com.eascs.app.context.ConfigContext;

@Configuration
@EnableCaching(proxyTargetClass = true)
@Profile("!test")
public class CacheConfig extends DefaultCacheConfig {
	@Inject
	Environment env;

	@Override
	public CacheSettings cacheSettings() {
		ConfigContext.bindConfigObject(CacheSettings.get());
		return CacheSettings.get();
	}

	@Override
	protected void addCaches(CacheRegistry registry) {
		//registry.addCache(Caches.CART_NO);
	}

	@Override
	public CacheResolver cacheResolver() {
		return null;
	}

	@Override
	public CacheErrorHandler errorHandler() {
		return null;
	}

}
*/